import type { CustomRoute } from '@elegant-router/types';

// 客户端路由配置
export const clientRoutes: CustomRoute[] = [
  {
    name: 'client',
    path: '/client',
    component: 'layout.client',
    redirect: '/client/home',
    meta: {
      title: '客户端系统',
      icon: 'mdi:account',
      constant: true
    },
    children: [
      {
        name: 'client_home',
        path: '/client/home',
        component: 'view.client_home',
        meta: {
          title: '客户端首页',
          icon: 'mdi:home',
          constant: true
        }
      },
      {
        name: 'client_test',
        path: '/client/test',
        component: 'view.client_test',
        meta: {
          title: '测试页面',
          icon: 'mdi:test-tube',
          constant: true
        }
      },
      // 添加function嵌套路由
      {
        name: 'client_function',
        path: '/client/function',
        component: 'layout.client',
        meta: {
          title: '功能测试',
          icon: 'mdi:function',
          constant: true
        },
        children: [
          {
            name: 'client_function_test',
            path: '/client/function/test',
            component: 'view.client_function_test',
            meta: {
              title: '功能测试页',
              icon: 'mdi:test-tube',
              constant: true
            }
          }
        ]
        
      }
    ]
  }
];